/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-06-08 13:41:55
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-06-13 14:55:19
 * @FilePath: \XHJD\src\http\api\home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2022-04-25 14:38:59
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-12-29 14:08:08
 */
import request from '../axios'
import { axiosHw } from '../axios'

// export const getvwRoadYdlength = () => {
//   return request({ url: "mh/getvwRoadYdlength", method: "get" });
// };
// export const getinfoRoadYdHoursYear = (data) => {
//   return request({ url: "mh/getinfoRoadYdHoursYear", method: "post", data });
// };

export const getDataByViewName = (data) => {
  return request({ url: 'getDataByViewName', method: 'post', data })
}
export const getXqsp = (data) => {
  return request({ url: 'getXqsp', method: 'post', data })
}
export const getMyyjsj = (data) => {
  return request({ url: 'getMyyjsj', method: 'post', data })
}
//用水用电
export const getYsyd = (data) => {
  return request({ url: 'getYsyd', method: 'post', data })
}
//新虹七日机扫率---采用环卫的接口地址
export const getDataOfView = (data) => {
  return axiosHw({ url: 'getDataOfView', method: 'post', data })
}
//案件数量
export const getAjFlCount = (data) => {
  return request({ url: 'getAjFlCount', method: 'post', data })
}
//环卫养护案件
export const getHwyhajInfo = (data) => {
  return request({ url: 'getHwyhajInfo', method: 'post', data })
}
//智能柜
export const getZng = (data) => {
  return request({ url: 'getZng', method: 'post', data })
}
//首页案件
export const getAjByStatus = (data) => {
  return request({ url: 'getAjByStatus', method: 'post', data })
}
//首页环卫设施
export const getHWSS = (data) => {
  return request({ url: 'getHWSS', method: 'post', data })
}
//垃圾分类-垃圾车
export const getShljsb = (data) => {
  return request({ url: 'getShljsb', method: 'post', data })
}
export const getShljsbInfo = (data) => {
  return request({ url: 'getShljsbInfo', method: 'post', data })
}
//环卫作业-超速预警
export const getChaoSuData = (data) => {
  return request({ url: 'getChaoSuData', method: 'post', data })
}
//环卫作业-机械化作业车
export const getJxhzyc = (data) => {
  return request({ url: 'getJxhzyc', method: 'post', data })
}
//绿化养护环卫-任务计划
export const getYhjh = (data) => {
  return request({ url: 'getYhjh', method: 'post', data })
}
//垃圾分类-办结率分析
export const getXbljzl = (data) => {
  return request({ url: 'getXbljzl', method: 'post', data })
}
//首页-公厕人流量查询
export const getGCRLL = (data) => {
  return request({ url: 'getGCRLL', method: 'post', data })
}
//首页-获取活动备案
export const getHDBAXX = (data) => {
  return request({ url: 'getHDBAXX', method: 'post', data })
}
//首页left1建筑垃圾月统计
export const getJZLJCZYSJ = (data) => {
  return request({ url: 'getJZLJCZYSJ', method: 'post', data })
}
//首页left3施工备案统计信息
export const getSGBAXX = (data) => {
  return request({ url: 'getSGBAXX', method: 'post', data })
}
//首页right1公厕考勤情况
export const getGCYKQSJ = (data) => {
  return request({ url: 'getGCYKQSJ', method: 'post', data })
}
//垃圾分类-偏离路线
export const getPLLXList = (data) => {
  return request({ url: 'getPLLXList', method: 'post', data })
}
//垃圾分类-案件分类
export const getLJFLAJFL = (data) => {
  return request({ url: 'getLJFLAJFL', method: 'post', data })
}
//垃圾分类-垃圾分类案件状态分类
export const getLJFLAJZTFL = (data) => {
  return request({ url: 'getLJFLAJZTFL', method: 'post', data })
}
//垃圾分类-获取小包垃圾小区数据-右侧左下角
export const getXbljList = (data) => {
  return request({ url: 'getXbljList', method: 'post', data })
}
//垃圾分类-小包高发时段
export const getGFSDInfo = (data) => {
  return request({ url: 'getGFSDInfo', method: 'post', data })
}
//*********************文件上传********************************************************** */
//文件上传,add添加接口
export const saveFile = (data) => {
  return request({ url: 'pc/saveFile', method: 'post', data, headers: { 'Content-Type': 'multipart/form-data' } })
}
//获取组织列表
export const getOrgList = (data) => {
  return request({ url: 'pc/getOrgList', method: 'get', data })
}
//获取文件列表
export const getFilesList = (data) => {
  return request({ url: 'pc/getFilesList', method: 'post', data })
}
//修改文件信息
export const updateFiles = (data) => {
  return request({ url: 'pc/updateFiles', method: 'post', data, headers: { 'Content-Type': 'multipart/form-data' } })
}
//删除文件
export const deleteFiles = (data) => {
  return request({ url: 'pc/deleteFiles?objectId=' + data.objectId + '&userName=' + data.userName, method: 'get' })
}
// export const deleteFiles = (data) => {
//   return request({ url: 'pc/deleteFiles', method: 'get', data })
// }
